<template>
  <div>
    <search-header @change="changePage"></search-header>
    <search-content :page="page"></search-content>
  </div>
</template>

<script>
import SearchHeader from './components/Header'
import SearchContent from './components/Content'
export default {
  name: 'Search',
  data: function () {
    return {
      page: 0
    }
  },
  components: {
    SearchHeader,
    SearchContent
  },
  methods: {
    changePage: function (index) {
      this.page = index
    }
  }
}
</script>

<style lang="stylus" scoped>

</style>
